package com.gxa.modules.sys.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName("door")
@ApiModel("大门管理模型")
public class DoorDto {

    @ApiModelProperty("开门时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @TableField("open_time")
    @JsonIgnore
    private Date openTime;

    @ApiModelProperty("开门方式")
    private Integer manner;

    @ApiModelProperty("电话")
    private String tel;
}
